// 该文件封装3个方法->专门用于操作token方法
const key = 'geek-ithemia'
// 设置token--添加
export const setToken = (token) => {
  localStorage.setItem(key, token)
}

// 获取token
export const getToken = () => {
  return localStorage.getItem(key)
}

// 删除token
export const removeToken = () => {
  localStorage.removeItem(key)
}
